import request from '@/utils/request'
import { getToken } from "@/utils/auth";

//分页
export function page(data) {
    return request({
        url: '/sys/v1/operation-log/page',
        method: 'get',
        params: {
            ...data
        }
    })
}

//导出
export function exportLog(data) {
    return request({
        url: '/sys/v1/operation-log/export',
        method: 'post',
        data,
        responseType: 'blob',
        headers: {
            Authorization: getToken()
        }
    })
}


//删除
export function deleteById(id) {
    return request({
        url: '/sys/v1/operation-log/delete/' + id,
        method: 'get',
    })
}